/*
 * ConceptTupeStruct.java
 *
 * Created on 4 April 2007, 13:06
 *
 *
 */

package rxtokenizer;

/**
 * Class has public base concept fields.
 * @author Ruslan Fayzrakhmanov
 */
public class ConceptTypeStruct {
    
    public ConceptTypeStruct() {}
    
    public ConceptTypeStruct(String name, String originalExtractingExp) {
	this.name = name;
	this.originalExtractingExp = originalExtractingExp;
    }
    
    public ConceptTypeStruct(String name, String originalExtractingExp, int conceptTypeId) {
	this.name = name;
	this.originalExtractingExp = originalExtractingExp;
	this.conceptTypeId = conceptTypeId;
    }
    
    public ConceptTypeStruct(String name, String originalExtractingExp, String description) {
	this.name = name;
	this.originalExtractingExp = originalExtractingExp;
	this.description = description;
    }
    
    public ConceptTypeStruct(String name, String originalExtractingExp, String constraintExtractingExp, String description) {
	this.name = name;
	this.originalExtractingExp = originalExtractingExp;
	this.constraintExtractingExp = constraintExtractingExp;
	this.description = description;
    }
    
    public ConceptTypeStruct(String name, String originalExtractingExp, String constraintExtractingExp, String description, int conceptTypeId) {
	this.name = name;
	this.originalExtractingExp = originalExtractingExp;
	this.constraintExtractingExp = constraintExtractingExp;
	this.description = description;
	this.conceptTypeId = conceptTypeId;
    }
    
    public String toString() {
	return "name = "+name+"\nconstraintExtractingExp = "+constraintExtractingExp+"\noriginalExtractingExp = "+originalExtractingExp+"\ndescription = "+description+"\nconceptTypeId = "+conceptTypeId+'\n';
    }

	/**
	 * Name of the concept type.
	 */
    public String name = "";
	/**
	 * Original string for extracting concepts.
	 */
    public String originalExtractingExp = "";
	/**
	 * Constraint for extracted concept.
	 */
    public String constraintExtractingExp = "";
	/**
	 * Description of the concept type.
	 */
    public String description = "";
	/**
	 * Id of the kind of concept (RegExpConceptType or another).
	 */
    public int conceptTypeId = -1;
}
